package com.openingedu.mba.screen.activity.message;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.lurencun.android.support.ui.BackUIActivity;
import com.openingedu.mba.R;
import com.openingedu.mba.common.AppSetting;

/**
 * 消息显示界面
 * @author unidw
 *
 */
public class MessageViewActivity extends BackUIActivity {
	
	private Context mContext;
	
	@Override
	protected void onCreateEx(Bundle savedInstanceState) {
		mContext = this;
		Intent intent = getIntent();
		String title = intent.getStringExtra(AppSetting.MENU_TITLE);
		String content = intent.getStringExtra(AppSetting.MENU_VALUE);
		TextView titleView = (TextView) findViewById(R.id.app_title);
		TextView contentView = (TextView) findViewById(R.id.message_content);
		titleView.setText(title);
		contentView.setText(content);
	}
	
	@Override
	protected int getBackButtonResId() {
		return R.id.back_button;
	}

	@Override
	protected int getContentViewLayoutId() {
		return R.layout.message_view;
	}

	@Override
	protected boolean isConfirmBack() {
		return false;
	}

	

}
